# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=python-zope-deprecation
pkgver=5.0
pkgrel=2
pkgdesc="Zope Deprecation Infrastructure"
arch=('any')
url="https://github.com/zopefoundation/zope.deprecation"
license=('ZPL')
depends=('python-setuptools')
checkdepends=('python-nose')
source=("$pkgname-$pkgver.tar.gz::https://github.com/zopefoundation/zope.deprecation/archive/$pkgver.tar.gz")
sha512sums=('c194d5c5bf7a47311f7c85b21ecd9f2f238cb332859ca8fa4d20b98ae4041867497e5384f4de10f03b7a4005810700ed61cd3c86c46dd638a3780500eea7dd6c')

build() {
  cd "$srcdir"/zope.deprecation-$pkgver
  python setup.py build
}

check() {
  cd "$srcdir"/zope.deprecation-$pkgver
  nosetests3
}

package() {
  cd zope.deprecation-$pkgver
  python setup.py install --root="$pkgdir" --optimize=1
}

# vim:set ts=2 sw=2 et:
